const TOKEN_KEY = "view_token"
const UID_KEY = "view_uid"
// localStorage
export const auth = {
	getToken() {
		return sessionStorage.getItem(TOKEN_KEY)
	},
	setToken(token) {
		return sessionStorage.setItem(TOKEN_KEY, token)
	},
	removeToken() {
		return sessionStorage.removeItem(TOKEN_KEY)
	},

	getUid() {
		return sessionStorage.getItem(UID_KEY)
	},
	setUid(id) {
		return sessionStorage.setItem(UID_KEY, id)
	},
	removeUid() {
		return sessionStorage.removeItem(UID_KEY)
	}
}
